<%-- 
    Document   : newjsp
    Created on : 16/09/2011, 13:52:35
    Author     : Carlos, Edward, Diego, Honorio
--%>

<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" language="java"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="style.css" type="text/css" media="screen">
        <title>JSP Page</title>
        <script language="JavaScript"> 
            function relogio(){ 
                momentoAtual = new Date() 
                hora = momentoAtual.getHours() 
                minuto = momentoAtual.getMinutes() 
                segundo = momentoAtual.getSeconds() 

                horaImprimivel = hora + " : " + minuto + " : " + segundo 

                document.form_relogio.relogio.value = horaImprimivel 

                setTimeout("moveRelogio()",1000) 
            } 
        </script>
    </head>



    <body onload="relogio()"> 

        <c:if test="${not empty param.idioma}"> 
            <fmt:setLocale value="${param.idioma}" scope="session"/>
        </c:if>
        <div id="container"> 
            <div id="header"> 
                <img src="imagens/topo.jpg" alt="topo" width="600" height="130">    
            </div> 

            <div id="navigation">
                <ul> 
                    <li><a href="index.jsp"><fmt:message key="system.home" /></a></li> 
                    <li><a href="reserva.jsp"><fmt:message key="system.reservas" /></a></li>
                    <li><a href="cadastro.jsp"><fmt:message key="system.cadastro" /></a></li>
                    <li><a href="login.jsp"><fmt:message key="system.login" /></a></li> 
                </ul> 
                <div id="linguagens">
                    <a href="index.jsp?idioma=en">
                        <img src="imagens/bandeiraeua.jpg"/></a>
                    <a href="index.jsp?idioma=pt">
                        <img src="imagens/bandeirabrasil.jpg"/></a>
                </div>

            </div>
            <div id="horas">
                <form name="form_relogio"> 
                   hora certa <input type="text" name="relogio" size="10"> 
                </form>
            </div>
        </div>
    </body>
</html>
